package org.grow.took.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.grow.took.entity.RoleInfo;
import org.grow.took.entity.UserInfo;

import java.util.List;

/**
 * @Author: xwg
 * @CreateDate: 2021/9/30
 */

@Mapper
public interface UserInfoDao extends BaseMapper<UserInfo> {


    UserInfo findByUsername(@Param("username") String username);

    List<RoleInfo> queryRolesByUsername(@Param("username") String username);


    List<RoleInfo> queryRolesByUrl(@Param("url") String url,@Param("method") String method );
}
